]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/bluetooth: Use 'Alias' for item labels
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 23 Apr 2023 19:10:40 +0000 (21:10 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 25 Apr 2023 14:16:42 +0000 (14:16 +0000)
Unlike 'Name', the 'Alias' property can be changed by the user,
so it's more suitable for user-visible labels.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6626

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2751>

js/ui/status/bluetooth.js

index 8f1d82a94ea3d1989c1ccec65d74c6a1ac528a2c..2977a4d949d15fed0f5a58cb80319ddef5a251a9 100644 (file)
@@ -212,7 +212,7 @@ class BluetoothDeviceItem extends PopupMenu.PopupBaseMenuItem {
         this._device.bind_property('icon',
             this._icon, 'icon-name',
             GObject.BindingFlags.SYNC_CREATE);
-        this._device.bind_property('name',
+        this._device.bind_property('alias',
             this._label, 'text',
             GObject.BindingFlags.SYNC_CREATE);
         this._device.bind_property_full('connected',